package com.whfc.ms.api.mach.service.impl;

import com.whfc.mach.dto.maintain.MaintainMonthReportDTO;
import com.whfc.mach.dto.maintain.MaintainPayStatDTO;
import com.whfc.mach.dto.maintain.MaintainYearReportDTO;
import com.whfc.mach.service.AppMachMaintainReportService;
import com.whfc.ms.api.mach.service.MsMachMaintainReportService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author sun_guodong
 * @date 2021-08-13
 */
@Service
public class MsMachMaintainReportServiceImpl implements MsMachMaintainReportService {

    @DubboReference(interfaceClass = AppMachMaintainReportService.class, version = "1.0.0")
    private AppMachMaintainReportService appMachMaintainReportService;

    @Override
    public MaintainPayStatDTO maintainPayStat(Integer deptId, Date startDate, Date endDate, String keyword) {
        return appMachMaintainReportService.maintainPayStat(deptId, startDate, endDate, keyword);
    }

    @Override
    public MaintainMonthReportDTO reportByMonth(Integer deptId, Date startDate, Date endDate, String keyword) {
        return appMachMaintainReportService.reportByMonth(deptId, startDate, endDate, keyword);
    }

    @Override
    public MaintainYearReportDTO reportByYear(Integer deptId, Integer year, String keyword) {
        return appMachMaintainReportService.reportByYear(deptId, year, keyword);
    }

    @Override
    public void export(Integer deptId, Date startDate, Date endDate, String keyword) {
        appMachMaintainReportService.export(deptId, startDate, endDate, keyword);
    }

    @Override
    public void export(Integer deptId, Integer year, String keyword) {
        appMachMaintainReportService.export(deptId, year, keyword);
    }
}
